package cn.cboard.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import cn.cboard.model.Authorization;

public class SessionUtil {
	public static Object getAttribute(HttpServletRequest request, String key){
		HttpSession session = request.getSession();
		return session.getAttribute(key);
	}

	public static void setAttribute(HttpServletRequest request,String name, Object value) {
		HttpSession session = request.getSession();
		session.setAttribute(name, value);		
	}

}
